/* Class mapGui
 * 
 * 
 */
package disasterGameProj;

import java.awt.Graphics;

import javax.swing.JComponent;

public class mapGui extends JComponent
{
	public Map mapObj = null;
	
	mapGui( Map map )
	{
		mapObj = map;
	}
	
	public void paint(Graphics g) 
    {
    	int xDem = 0;
    	int yDem = 0;
    	
    	for( int y = 0; y < 15; y++ )
    	{
    		for( int x = 0; x < 25; x++ )
    		{
    			g.drawImage(mapObj.tileList[x][y].img, xDem, yDem, null);
    			xDem += 48;
    		}
    		xDem = 0;
    		yDem += 48;
    	}
    }
	
}
